package com.dh.project.controller;

import com.dh.project.other.BaseController;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class WebSocketController extends BaseController {

    @RequestMapping("/websocket")
    public String websocket(Model model, @RequestParam(value = "id", required = false) String id) {
        model.addAttribute("id",id);
        return "websocket";
    }

}
